<?php
class Config_Default
{
    public static function getDBConfig()
    {
        $config = array(
        'host'        => '127.0.0.1',
        'user'        => 'root',
        'password'    => '123456',
        'defaultDB'   => 'pgm',
        'port'        => '3306',
        );
        
        return $config;
    }
    
    public static function getHost()
    {
        $host = Eren_Request_URL::getHost();
        
        return $host;
    }
    
    public static function getUploadPath()
    {
        $path = 'http://' . Eren_Request_URL::getHost() . '/static/upload';
        
        return $path;
    }
    
    public static function getJsPath()
    {
        $path = 'http://' . Eren_Request_URL::getHost() . '/static/js';
        
        return $path;
    }
    
    public static function getCssPath()
    {
        $path = 'http://' . Eren_Request_URL::getHost() . '/static/css';
        
        return $path;
    }

    public static function getImgPath()
    {
        $path = 'http://' . Eren_Request_URL::getHost() . '/static/img';
        
        return $path;
    }
    
    public static function getStaticVersion()
    {
        return 3;
    } 
    
    public static function getAuthConfig()
    {
        $config = array(
        1    => array(
            'name' => 'model',
            'auth' => 'level_1',
        ),
        2    => array(
            'name' => 'model manager',
            'auth' => 'level_1',
        ),
        3    => array(
            'name' => 'booker',
            'auth' => 'level_2',
        ),
        4    => array(
            'name' => 'leader',
            'auth' => 'level_3',
        ),
        5    => array(
            'name' => 'admin',
            'auth' => 'level_4',
        ),
        );
        
        return $config;
    }
    
    public static function getWorkType()
    {
        $config = array(
        1        => '拍摄-价格/小时',
        2        => '活动-价格/人次',
        3        => '杂志-价格/天',
        4        => '试装',
        5        => '彩排',
        6        => '出差',
        7        => '回京',
        9        => '创作',
        10        => '展示',
        8        => '其他'
        );
        
        return $config;
    }
    
    public static function chs2eng()
    {
    	$config = array(
        '拍摄' => 'Shooting',
        '活动' => 'Show',
        '杂志' => 'Magazine',
        '试装' => 'Fitting',
        '彩排' => 'Rehearsal',
        '出差' => 'Trip',
        '回京' => 'Back',
        '其他' => 'Other',
        '工作' => 'Work',
        '创作' => 'text shooting',
        '展示' => 'Exhibition',
        '面试' => 'Casting'
        );
        
        return $config; 
    }
    
    public static function getModelStyle()
    {
        $config = array(
        1        => '国内男模',
        2        => '国内女模',
        3        => '外籍男模',
        4        => '外籍女模',
        );
        
        return $config;
    }
    
    public static function getCompanyName()
    {
        return "PIONEER GROUP MODEL";
    }
    
    public static function getCompanyTitle()
    {
        return "PGM";
    }
    
    public static function getWorkPageSize()
    {
        return 4;
    }
    
    public static function getModelPageSize()
    {
        return 10;
    }
    
    public static function getUserPageSize()
    {
        return 5;
    }
}
